package com.heima.user.feign;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.user.service.ApUserFansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/user")
public class UserClient {

    @Autowired
    private ApUserFansService fansService;

    @PostMapping("/query_follow/{authorId}/{userId}")
    public ResponseResult queryFollow(@PathVariable("authorId") Integer authorId,@PathVariable("userId") Integer userId){

        return fansService.queryFollow(authorId, userId);
    }
}
